package com.woniu51.k15demo.mapper;

import com.woniu51.k15demo.entity.ManagerRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ManagerRoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ManagerRole record);

    ManagerRole selectByPrimaryKey(Long id);

    List<ManagerRole> selectAll();

    int updateByPrimaryKey(ManagerRole record);

    void deleteByRoleId(Long id);

    List<Long> selectRoleIdListByManagerId(Long id);

    void deleteByManagerId(Long id);

    void batchInsert(@Param("managerId") Long managerId,@Param("roleIdList") List<Long> roleIdList);
}